<?php
/**
 * Dillenm-Mvc-Framework
 * 
 * A PHP MVC Framework written by Dillen Meijboom, all rights belong to him.
 * 
 * @license Copyright 2012 Dillen Meijboom under the Apache license version 2.0 (http://apache.org/licenses/LICENSE-2.0)
 * @author Dillen Meijboom <info@dillenm.nl>
 * @package System.library.Service
 * @url http://code.google.com/p/dillenm-mvc-framework/
 */

/**
 * Twitter Service API -> Twitter-Tweets collection object
 * 
 * @license Copyright 2012 Dillen Meijboom under the Apache license version 2.0 (http://apache.org/licenses/LICENSE-2.0)
 * @author Dillen Meijboom <info@dillenm.nl>
 * @package System.library.Service.Twitter
 */
class Dmf_Service_Twitter_Tweets extends Dmf_Service_Data
{
    /**
     * Get all tweets
     * 
     * @return Dmf_Service_Data 
     */
    public function getTweets()
    {
        $array = array();
        
        foreach( $this->asArray() as $tweet )
        {
            $array[] = new Dmf_Service_Data( $tweet );
        }
        
        return $array;
    }
}